<div class="groups form">
<?php	//Cache::write('institution_id',2); 
	if(!Cache::read('institution_id'))
	{
	    echo "<script>history.back(0);</script>";
	}
?>
<?php echo $this->Form->create('Group'); ?>
	<fieldset>
		<legend><?php echo __('Agregar Grupo'); ?></legend>
	<?php
		echo $this->Form->input('name',array('label'=>'Nombre del grupo'));
		echo $this->Form->input('institution_id',array('label'=>'Institución','default' => Cache::read('institution_id'),'disabled'=>'true'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Aceptar')); ?>
</div>
<div class="actions">
	<h3><?php echo __('Acciones'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('Listar grupos'), array('action' => 'index')); ?></li>
		<li><?php echo $this->Html->link(__('Listar instituciones'), array('controller' => 'institutions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nueva institución'), array('controller' => 'institutions', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Listar grupos de usuarios'), array('controller' => 'group_users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nuevo grupo de usuarios'), array('controller' => 'group_users', 'action' => 'add')); ?> </li>
	</ul>
</div>
